
<template>
  <el-carousel :interval="4000" type="card" height="200px">
    <el-carousel-item v-for="item in items" :key="item">
      <!-- <h3 text="2xl" justify="center">{{ item }}</h3> -->
       <img :src="item" />
    </el-carousel-item>
  </el-carousel>
</template>

<script>
export default {
    name: "ImgPreview",
    data() {
      return {
        items: [
          'https://shadow.elemecdn.com/app/element/hamburger.9cf7b091-55e9-11e9-a976-7f4d0b07eef6.png',
          'https://c-ssl.dtstatic.com/uploads/blog/202401/06/4ESANPl4ToMoMD2.thumb.1000_0.png',
          'https://oss.cloudhubei.com.cn/cms/release/set35/20241128/e0dfa97dc266b8261ebbc3d3c1f7e52d.jpg',
          'https://c-ssl.dtstatic.com/uploads/blog/202401/06/4ESANPl4ToMoMD2.thumb.1000_0.png',
          'https://oss.cloudhubei.com.cn/cms/release/set35/20241128/e0dfa97dc266b8261ebbc3d3c1f7e52d.jpg',

        ]
      }
    }
}
</script>

<style scoped>
.el-carousel__item h3 {
  color: #475669;
  opacity: 0.75;
  line-height: 200px;
  margin: 0;
  text-align: center;
}

.el-carousel__item:nth-child(2n) {
  background-color: #99a9bf;
}

.el-carousel__item:nth-child(2n + 1) {
  background-color: #d3dce6;
}
</style>